//
//  CTUserView.h
//  ConstellationTalk_0.1
//
//  Created by riley on 15/4/30.
//  Copyright (c) 2015年 riley chu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CTUserItem.h"
@class CTComment,CTFollowList,CTListDetailUser,CTUserSuggestionItem,CTTopic;

typedef enum{
    CTUserViewPushFromTypeDefault = 1,
    CTUserViewPushFromTypeOther
}CTUserViewPushFromType;

@protocol CTUserViewDelegate;

@interface CTUserView : UIView

@property(nonatomic,assign)id<CTUserViewDelegate>delegate;
@property(nonatomic,strong)CTUserItem * userItem;
@property(nonatomic,setter=setUserPublishArr:)NSArray * publishArr;
@property(nonatomic,setter=setPushType:)CTUserViewPushFromType type;

-(void)refreshPublishTable;
-(void)refreshPublishTableEnd;

-(void)refreshPublishCollection;
-(void)refreshPublishCollectionEnd;

-(void)refreshSubjectCollection;
-(void)refreshSubjectCollectionEnd;


-(void)reloadViews;
-(void)reloadTables;

@end


@protocol CTUserViewDelegate <NSObject>

-(void)setsAction:(CTUserView *)view;
-(void)loginAction:(CTUserView *)view;

-(void)followAction:(CTUserView *)view;
-(void)fenceAction:(CTUserView *)view;

-(void)verifiedWeiboAction:(CTUserView *)view;
-(void)verifiedShopAction:(CTUserView *)view;

-(void)backAction:(CTUserView *)view;

-(void)attention:(CTUserView *)view withBool:(BOOL)isAttention;


//publish tableview delegate

/**
 *@brief 点击评论总数
 */
- (void)commentCountActionItem:(CTFollowList *)item;
/**
 *@brief 点击评论第一条
 */
- (void)commentHitFirstLabelActionItem:(CTFollowList *)item;
/**
 *@brief 点击评论第二条
 */
- (void)commentHitSecondLabelActionItem:(CTFollowList *)item;
/**
 *@brief 点击评论第一条头像
 */
- (void)commentHitFirstHeadActionItem:(CTComment *) item;
/**
 *@brief 点击评论第二条头像
 */
- (void)commentHitSecondHeadActionItem:(CTComment *)item;
/**
 *@brief 点击头像
 */
- (void)hitHeadActionItem:(CTFollowList *)item;
/**
 *@brief 点击大图
 */
- (void)hitPicImageBtnActionItem:(CTFollowList *)item withImageView:(UIImageView *)imageView;
/**
 *@brief 点赞
 */
- (void)hitFavourBtnActionItem:(CTFollowList *)item withBool:(BOOL) favBool;
/**
 *@brief 点击评论按钮
 */
- (void)hitCommentBtnactionItem:(CTFollowList *)item;
/**
 *@brief 点击分享按钮
 */
- (void)hitShareBtnActionItem:(CTFollowList *)item withImage:(UIImage *)img;
/**
 *@brief 点击更多按钮
 */
- (void)hitMoreBtnActionItem:(CTFollowList *)item;
/**
 *@brief 点击点赞的人的头像
 */
- (void)hitFavBtnHeadActionItem:(CTListDetailUser *)item;
/**
 *@brief 点击关注按钮
 */
- (void)hitAttentionBtnActionItem:(CTFollowList *)item withBool:(BOOL)attenBool;
/**
 *@brief 点击话题
 */
- (void)hitTopicBtnActionItem:(CTTopic *)item;

//刷新
-(void)refreshPTControlPullDown;
-(void)refreshPTControlPullUp;


//publish collectionview delegate

-(void)collectionListViewClickedItem:(CTFollowList *)item;

//刷新
-(void)refreshPCControlPullDown;
-(void)refreshPCControlPullUp;



//subject collectionview delegate

//刷新
-(void)refreshSCControlPullDown;
-(void)refreshSCControlPullUp;

@end